package net.app.zoneland.oauth.token;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.util.Date;
import java.util.Map;

/**
 * @Description
 * @Author LENOVO
 * @CreateTime 2020/12/27 20:38
 * @Version: 1.0
 */
@ApiModel
@Data
@Builder
public class Oauth2Token {

    @ApiModelProperty("访问令牌")
    private String token;

    @ApiModelProperty("刷新令牌")
    private String refreshToken;

    @ApiModelProperty("有效时间(秒)")
    private int expiresIn;

    @ApiModelProperty("令牌生成时间")
    private Date expiration;

    @ApiModelProperty("扩展参数")
    private Map<String, Object> information;
}
